package homework.Game;
/**
 * 农民类
 */
public class Farmer extends Professional implements Mine,Attack,Treat{
    public Farmer(){

    }
    public Farmer(String name,int level){
        super(name,level);
    }
    /**挖矿的方法*/
    public void mine(){
        System.out.println("我是等级" + this.getLevel() + "的" + this.getName() + "我可以挖矿");
    }
    /**攻击的方法*/
    public void attack(){
        System.out.println("我也可以攻击");
    }
    /**治疗的方法*/
    public void treat(){
        System.out.println("我还可以治疗");
    }
}
